<!DOCTYPE html>
<html>
<head>
  <title>SQLite Data</title>
  <script>
    function loadData() {
      var db = openDatabase("website/xxy/xxy.db", "1.0", "Test DB", 2 * 1024 * 1024);
      db.transaction(function (tx) {
        tx.executeSql("SELECT * FROM class", [], function (tx, results) {
          var table = document.getElementById("mytable");
          var row, cell;
          for (var i = 0; i < results.rows.length; i++) {
            row = table.insertRow(i);
            cell = row.insertCell(0);
            cell.innerHTML = results.rows.item(i).column1;
            cell = row.insertCell(1);
            cell.innerHTML = results.rows.item(i).column2;
            cell = row.insertCell(2);
            cell.innerHTML = results.rows.item(i).column3;
          }
        });
      });
    }
  </script>
</head>
<body>
  <table id="mytable"></table>
  <script>loadData();</script>
</body>
</html>